import SMERouter from 'sme-router';

import advRouter from "$r/adv"
import advListRouter from "$r/advList"
import adminListRouter from "$r/adminList"
import loginRouter from "$r/login"

const router = new SMERouter('app', 'html5'); // 指定内容挂载的位置,参数是一个id
window.router = router

//配置路由
router.route("/login", loginRouter)

//一级路由配置
router.route("/adv", advRouter)
//二级路由配置
router.route("/adv/adminList", adminListRouter)
router.route("/adv/advList", advListRouter)



